<#include "header.ftl">

<#-- 购物车  -->
<script type="text/javascript" src="../../resources/js/settleAccount.js"></script>

<div class="g-doc" ng-controller="settleAccount">
    <div class="m-tab m-tab-fw m-tab-simple f-cb" >
        <h2>已添加到购物车的内容</h2>
    </div>
 	<table class="m-table m-table-row n-table g-b3">
 		<tbody ng-show="commodityList != null && commodityList != '' && userOfLoger != null">
 			<tr>
 				<th>内容</th>
 				<th>数量</th>
 				<th>价格</th>
 			</tr>
 			<tr ng-repeat="item in commodityList">
 			
 				<td ng-bind="item.name"></td>
 				<td><span class="lessNum"><a ng-click="item.number=item.number>1?item.number-1:item.number" >-</a></span><span class="totalNum" ng-bind="item.number"></span><span class="moreNum"><a ng-click="item.number=item.number+1">+</a></span></td>
 				<td ng-bind="item.price"></td>
 				</tr>
 		</tbody>
 	</table>
 	<div id="act-btn"><button class="u-btn u-btn-primary" ng-click="backward()">退出</button>
 	<button class="u-btn u-btn-primary" ng-click="addSelledModal()">购买</button></div>

	 <div class="modal fade" id="modalid-add-account">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">提示信息</h4>
                </div>
                <div class="modal-body">
                    <p>确认购买吗?</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="addSelled()">确定</button>
                    <button type="button" class="btn btn-danger" data-dismiss="modal">取消</button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->

</div>

<#include "footer.ftl">